
def _factorial(num):
    fac = 1
    for i in range(1,num+1):
        fac *= i
    return fac

SUM = 0
for i in range(1,11):
    SUM += _factorial(i)

print(f"1!+2！+3！+……10！的结果为{SUM}")